package com.lxf.cloudproduct.mapper;

import com.lxf.cloudproduct.bean.TaskBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 罗兴发
 * @data 2025/6/9 14:31
 * @description：任务添加-持久层
 */
@Mapper
public interface TaskMapper {
    int addTask(@Param("list") List<TaskBean> list);

    int updateTask(@Param("t") TaskBean t);

    int deleteTask(@Param("id") Integer id);

    List<TaskBean> getAllTask();

    int updateTaskIsMsg(@Param("tId") Integer tId,
                         @Param("isMsg") Integer isMsg);

    int deleteTaskByMsgStatus(@Param("isMsg") Integer isMsg);
}
